package com.qiyuexinxi.chat.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @author yangxingyu
 * @date 2020/2/25
 * @description
 */
@ApiModel("增加用户")
@Data
public class UserAddRequest {

    @ApiModelProperty(value = "用户名称",required = true)
    @NotEmpty(message = "用户名称不能为空")
    private String username;

    @ApiModelProperty("用户密码")
    @NotEmpty(message = "用户密码不能为空")
    private String password;

    @ApiModelProperty("用户手机号")
    @NotEmpty(message = "用户手机号不能为空")
    @Pattern(regexp = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|(147))\\d{8}$", message = "手机号格式错误")
    private String phone;

    @ApiModelProperty("vip标示 0:普通会员 1:月vip 2:季vip 3:年vip")
    @Pattern(regexp = "[0-3]", message = "vip标示格式错误 0:普通会员 1:月vip 2:季vip 3:年vip")
    private String vipLogo;

    @ApiModelProperty("个性签名")
    @NotEmpty(message = "个性签名不能为空")
    private String signature;

    @ApiModelProperty("自我介绍")
    @NotEmpty(message = "自我介绍不能为空")
    private String introduction;

    @ApiModelProperty("用户头像")
    @NotEmpty(message = "用户头像不能为空")
    private String pictureImg;

    @ApiModelProperty("用户图片id,多张图片用英文逗号分隔")
    private String pictureAssociationId;

    @ApiModelProperty("用户自拍视频id,多个视频用英文逗号分隔")
    private String vlogAssociationId;

    @ApiModelProperty("身份证号")
    @NotEmpty(message = "身份证号不能为空")
    private String idNumber;

    @ApiModelProperty("身份证正面")
    @NotEmpty(message = "身份证正面不能为空")
    private String idPictureFront;

    @ApiModelProperty("身份证反面")
    @NotEmpty(message = "身份证反面不能为空")
    private String idPictureBack;

    @ApiModelProperty("所在城市")
    @NotEmpty(message = "所在城市不能为空")
    private String city;

    @ApiModelProperty("经度")
    private String longitude;

    @ApiModelProperty("纬度")
    private String latitude;

    @ApiModelProperty("性别")
    @NotEmpty(message = "性别不能为空")
    @Pattern(regexp = "[1-2]", message = "性别格式错误:1.男 2.女")
    private String sex;

    @ApiModelProperty("年龄")
    @NotEmpty(message = "年龄不能为空")
    @Pattern(regexp = "[0-150]", message = "年龄格式错误：年龄范围0-150")
    private String age;



}
